using System;
using System.Linq;
using System.Collections.Generic;

namespace MvvmCodeReduction.Model
{
    public class RepositoryStub : IRepository
    {
        private IEnumerable<Model.Customer> _customers;
        public static readonly IRepository Instance = new RepositoryStub();

        public IEnumerable<Model.Customer> GetCustomers()
        {
            return _customers ?? (_customers = new List<Model.Customer>
                       {
                           new Customer(1, "Acme"),
                           new Customer(2, "Stanely"),
                           new Customer(3, "Borders")
                       });
        }
    }
}